using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Money_Log_Mobile
{
    public partial class frmUpdateBalance : Form
    {
        private Bank oBank;
        public frmUpdateBalance(Bank BankOpen)
        {
            oBank = BankOpen;
            InitializeComponent();
        }

        private void menuItem2_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void menuItem1_Click(object sender, EventArgs e)
        {
            oBank.UpdateBalance(Convert.ToDouble(textBox1.Text), dateTimePicker1.Value);
            this.Close();
        }
    }
}